name: tests221 run_id: commands[0] env HOME: /home/jenkins env LANG: C.UTF-8 env PATH: /w/workspace/transportpce-tox-verify-transportpce-master/.tox/tests221/bin:/opt/pyenv/bin:/tmp/venv-23h6/bin:/opt/pyenv/shims:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin env PYTHONHASHSEED: 2927779784 env PIP_DISABLE_PIP_VERSION_CHECK: 1 env PYTHONIOENCODING: utf-8 env USE_ODL_ALT_KARAF_ENV: ./karaf221.env env USE_ODL_ALT_KARAF_INSTALL_DIR: karaf221 env TOX_ENV_NAME: tests221 env TOX_WORK_DIR: /w/workspace/transportpce-tox-verify-transportpce-master/.tox env TOX_ENV_DIR: /w/workspace/transportpce-tox-verify-transportpce-master/.tox/tests221 env VIRTUAL_ENV: /w/workspace/transportpce-tox-verify-transportpce-master/.tox/tests221 metadata pid: 42565 cwd: /w/workspace/transportpce-tox-verify-transportpce-master/tests allow: /w/workspace/transportpce-tox-verify-transportpce-master/.tox/tests221/bin/*:launch_tests.sh cmd: ./launch_tests.sh 2.2.1 exit_code: 1 using environment variables from ./karaf221.env pytest -q transportpce_tests/2.2.1/test01_portmapping.py ................................... [100%] =============================== warnings summary =============================== ../.tox/tests221/lib/python3.11/site-packages/paramiko/pkey.py:100 /w/workspace/transportpce-tox-verify-transportpce-master/.tox/tests221/lib/python3.11/site-packages/paramiko/pkey.py:100: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0. "cipher": algorithms.TripleDES, ../.tox/tests221/lib/python3.11/site-packages/paramiko/transport.py:259 /w/workspace/transportpce-tox-verify-transportpce-master/.tox/tests221/lib/python3.11/site-packages/paramiko/transport.py:259: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0. "class": algorithms.TripleDES, -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 35 passed, 2 warnings in 250.43s (0:04:10) pytest -q transportpce_tests/2.2.1/test02_topo_portmapping.py ...... [100%] =============================== warnings summary =============================== ../.tox/tests221/lib/python3.11/site-packages/paramiko/pkey.py:100 /w/workspace/transportpce-tox-verify-transportpce-master/.tox/tests221/lib/python3.11/site-packages/paramiko/pkey.py:100: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0. "cipher": algorithms.TripleDES, ../.tox/tests221/lib/python3.11/site-packages/paramiko/transport.py:259 /w/workspace/transportpce-tox-verify-transportpce-master/.tox/tests221/lib/python3.11/site-packages/paramiko/transport.py:259: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0. "class": algorithms.TripleDES, -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 6 passed, 2 warnings in 41.97s pytest -q transportpce_tests/2.2.1/test03_topology.py ............................................ [100%] =============================== warnings summary =============================== ../.tox/tests221/lib/python3.11/site-packages/paramiko/pkey.py:100 /w/workspace/transportpce-tox-verify-transportpce-master/.tox/tests221/lib/python3.11/site-packages/paramiko/pkey.py:100: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0. "cipher": algorithms.TripleDES, ../.tox/tests221/lib/python3.11/site-packages/paramiko/transport.py:259 /w/workspace/transportpce-tox-verify-transportpce-master/.tox/tests221/lib/python3.11/site-packages/paramiko/transport.py:259: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0. "class": algorithms.TripleDES, -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 44 passed, 2 warnings in 143.78s (0:02:23) pytest -q transportpce_tests/2.2.1/test04_otn_topology.py ............ [100%] =============================== warnings summary =============================== ../.tox/tests221/lib/python3.11/site-packages/paramiko/pkey.py:100 /w/workspace/transportpce-tox-verify-transportpce-master/.tox/tests221/lib/python3.11/site-packages/paramiko/pkey.py:100: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0. "cipher": algorithms.TripleDES, ../.tox/tests221/lib/python3.11/site-packages/paramiko/transport.py:259 /w/workspace/transportpce-tox-verify-transportpce-master/.tox/tests221/lib/python3.11/site-packages/paramiko/transport.py:259: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0. "class": algorithms.TripleDES, -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 12 passed, 2 warnings in 56.99s pytest -q transportpce_tests/2.2.1/test05_flex_grid.py ................ [100%] =============================== warnings summary =============================== ../.tox/tests221/lib/python3.11/site-packages/paramiko/pkey.py:100 /w/workspace/transportpce-tox-verify-transportpce-master/.tox/tests221/lib/python3.11/site-packages/paramiko/pkey.py:100: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0. "cipher": algorithms.TripleDES, ../.tox/tests221/lib/python3.11/site-packages/paramiko/transport.py:259 /w/workspace/transportpce-tox-verify-transportpce-master/.tox/tests221/lib/python3.11/site-packages/paramiko/transport.py:259: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0. "class": algorithms.TripleDES, -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 16 passed, 2 warnings in 111.83s (0:01:51) pytest -q transportpce_tests/2.2.1/test06_renderer_service_path_nominal.py ............................... [100%] =============================== warnings summary =============================== ../.tox/tests221/lib/python3.11/site-packages/paramiko/pkey.py:100 /w/workspace/transportpce-tox-verify-transportpce-master/.tox/tests221/lib/python3.11/site-packages/paramiko/pkey.py:100: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0. "cipher": algorithms.TripleDES, ../.tox/tests221/lib/python3.11/site-packages/paramiko/transport.py:259 /w/workspace/transportpce-tox-verify-transportpce-master/.tox/tests221/lib/python3.11/site-packages/paramiko/transport.py:259: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0. "class": algorithms.TripleDES, -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 31 passed, 2 warnings in 34.96s pytest -q transportpce_tests/2.2.1/test07_otn_renderer.py .......................... [100%] =============================== warnings summary =============================== ../.tox/tests221/lib/python3.11/site-packages/paramiko/pkey.py:100 /w/workspace/transportpce-tox-verify-transportpce-master/.tox/tests221/lib/python3.11/site-packages/paramiko/pkey.py:100: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0. "cipher": algorithms.TripleDES, ../.tox/tests221/lib/python3.11/site-packages/paramiko/transport.py:259 /w/workspace/transportpce-tox-verify-transportpce-master/.tox/tests221/lib/python3.11/site-packages/paramiko/transport.py:259: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0. "class": algorithms.TripleDES, -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 26 passed, 2 warnings in 89.21s (0:01:29) pytest -q transportpce_tests/2.2.1/test08_otn_sh_renderer.py ...................... [100%] =============================== warnings summary =============================== ../.tox/tests221/lib/python3.11/site-packages/paramiko/pkey.py:100 /w/workspace/transportpce-tox-verify-transportpce-master/.tox/tests221/lib/python3.11/site-packages/paramiko/pkey.py:100: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0. "cipher": algorithms.TripleDES, ../.tox/tests221/lib/python3.11/site-packages/paramiko/transport.py:259 /w/workspace/transportpce-tox-verify-transportpce-master/.tox/tests221/lib/python3.11/site-packages/paramiko/transport.py:259: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0. "class": algorithms.TripleDES, -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 22 passed, 2 warnings in 96.19s (0:01:36) pytest -q transportpce_tests/2.2.1/test09_olm.py ........................................ [100%] =============================== warnings summary =============================== ../.tox/tests221/lib/python3.11/site-packages/paramiko/pkey.py:100 /w/workspace/transportpce-tox-verify-transportpce-master/.tox/tests221/lib/python3.11/site-packages/paramiko/pkey.py:100: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0. "cipher": algorithms.TripleDES, ../.tox/tests221/lib/python3.11/site-packages/paramiko/transport.py:259 /w/workspace/transportpce-tox-verify-transportpce-master/.tox/tests221/lib/python3.11/site-packages/paramiko/transport.py:259: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0. "class": algorithms.TripleDES, -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 40 passed, 2 warnings in 175.56s (0:02:55) pytest -q transportpce_tests/2.2.1/test11_otn_end2end.py FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [ 74%] FFFFFFFFFFFFFFFFFFFFFFFFF [100%] =================================== FAILURES =================================== __________________ TransportPCEtesting.test_01_connect_spdrA ___________________ self = def test_01_connect_spdrA(self): response = test_utils.mount_device("SPDR-SA1", ('spdra', self.NODE_VERSION)) > self.assertEqual(response.status_code, requests.codes.created, test_utils.CODE_SHOULD_BE_201) E AssertionError: 401 != 201 : Http status code should be 201 transportpce_tests/2.2.1/test11_otn_end2end.py:158: AssertionError ---------------------------- Captured stdout setup ----------------------------- starting OpenDaylight... starting KARAF TransportPCE build... Searching for pattern 'Transportpce controller started' in karaf.log... Pattern found! OpenDaylight started ! starting simulator spdra in OpenROADM device version 2.2.1... Searching for pattern 'Data tree change listeners registered' in spdra-221.log... Pattern found! simulator for spdra started starting simulator roadma in OpenROADM device version 2.2.1... Searching for pattern 'Data tree change listeners registered' in roadma-221.log... Pattern found! simulator for roadma started starting simulator roadmc in OpenROADM device version 2.2.1... Searching for pattern 'Data tree change listeners registered' in roadmc-221.log... Pattern found! simulator for roadmc started starting simulator spdrc in OpenROADM device version 2.2.1... Searching for pattern 'Data tree change listeners registered' in spdrc-221.log... Pattern found! simulator for spdrc started ----------------------------- Captured stdout call ----------------------------- Searching for pattern 'Triggering notification stream NETCONF for node SPDR-SA1' in karaf.log... Pattern not found after 180 seconds! Node SPDR-SA1 still not added to tpce topology... __________________ TransportPCEtesting.test_02_connect_spdrC ___________________ self = def test_02_connect_spdrC(self): response = test_utils.mount_device("SPDR-SC1", ('spdrc', self.NODE_VERSION)) > self.assertEqual(response.status_code, requests.codes.created, test_utils.CODE_SHOULD_BE_201) E AssertionError: 401 != 201 : Http status code should be 201 transportpce_tests/2.2.1/test11_otn_end2end.py:163: AssertionError ----------------------------- Captured stdout call ----------------------------- Searching for pattern 'Triggering notification stream NETCONF for node SPDR-SC1' in karaf.log... Pattern not found after 180 seconds! Node SPDR-SC1 still not added to tpce topology... ___________________ TransportPCEtesting.test_03_connect_rdmA ___________________ self = def test_03_connect_rdmA(self): response = test_utils.mount_device("ROADM-A1", ('roadma', self.NODE_VERSION)) > self.assertEqual(response.status_code, requests.codes.created, test_utils.CODE_SHOULD_BE_201) E AssertionError: 401 != 201 : Http status code should be 201 transportpce_tests/2.2.1/test11_otn_end2end.py:168: AssertionError ----------------------------- Captured stdout call ----------------------------- Searching for pattern 'Triggering notification stream NETCONF for node ROADM-A1' in karaf.log... Pattern not found after 180 seconds! Node ROADM-A1 still not added to tpce topology... ___________________ TransportPCEtesting.test_04_connect_rdmC ___________________ self = def test_04_connect_rdmC(self): response = test_utils.mount_device("ROADM-C1", ('roadmc', self.NODE_VERSION)) > self.assertEqual(response.status_code, requests.codes.created, test_utils.CODE_SHOULD_BE_201) E AssertionError: 401 != 201 : Http status code should be 201 transportpce_tests/2.2.1/test11_otn_end2end.py:173: AssertionError ----------------------------- Captured stdout call ----------------------------- Searching for pattern 'Triggering notification stream NETCONF for node ROADM-C1' in karaf.log... Pattern not found after 180 seconds! Node ROADM-C1 still not added to tpce topology... _________ TransportPCEtesting.test_05_connect_sprdA_1_N1_to_roadmA_PP1 _________ self = def test_05_connect_sprdA_1_N1_to_roadmA_PP1(self): > response = test_utils.transportpce_api_rpc_request( 'transportpce-networkutils', 'init-xpdr-rdm-links', {'links-input': {'xpdr-node': 'SPDR-SA1', 'xpdr-num': '1', 'network-num': '1', 'rdm-node': 'ROADM-A1', 'srg-num': '1', 'termination-point-num': 'SRG1-PP1-TXRX'}}) transportpce_tests/2.2.1/test11_otn_end2end.py:177: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ api_module = 'transportpce-networkutils', rpc = 'init-xpdr-rdm-links' payload = {'links-input': {'network-num': '1', 'rdm-node': 'ROADM-A1', 'srg-num': '1', 'termination-point-num': 'SRG1-PP1-TXRX', ...}} def transportpce_api_rpc_request(api_module: str, rpc: str, payload: dict): # pylint: disable=consider-using-f-string url = "{}/operations/{}:{}".format('{}', api_module, rpc) if payload is None: data = None elif RESTCONF_VERSION == 'draft-bierman02': data = prepend_dict_keys({'input': payload}, api_module + ':') else: data = {'input': payload} response = post_request(url, data) if response.status_code == requests.codes.no_content: return_output = None else: res = response.json() return_key = {'rfc8040': api_module + ':output', 'draft-bierman02': 'output'} if response.status_code == requests.codes.internal_server_error: return_output = res else: > return_output = res[return_key[RESTCONF_VERSION]] E KeyError: 'transportpce-networkutils:output' transportpce_tests/common/test_utils.py:694: KeyError _________ TransportPCEtesting.test_06_connect_roadmA_PP1_to_spdrA_1_N1 _________ self = def test_06_connect_roadmA_PP1_to_spdrA_1_N1(self): > response = test_utils.transportpce_api_rpc_request( 'transportpce-networkutils', 'init-rdm-xpdr-links', {'links-input': {'xpdr-node': 'SPDR-SA1', 'xpdr-num': '1', 'network-num': '1', 'rdm-node': 'ROADM-A1', 'srg-num': '1', 'termination-point-num': 'SRG1-PP1-TXRX'}}) transportpce_tests/2.2.1/test11_otn_end2end.py:184: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ api_module = 'transportpce-networkutils', rpc = 'init-rdm-xpdr-links' payload = {'links-input': {'network-num': '1', 'rdm-node': 'ROADM-A1', 'srg-num': '1', 'termination-point-num': 'SRG1-PP1-TXRX', ...}} def transportpce_api_rpc_request(api_module: str, rpc: str, payload: dict): # pylint: disable=consider-using-f-string url = "{}/operations/{}:{}".format('{}', api_module, rpc) if payload is None: data = None elif RESTCONF_VERSION == 'draft-bierman02': data = prepend_dict_keys({'input': payload}, api_module + ':') else: data = {'input': payload} response = post_request(url, data) if response.status_code == requests.codes.no_content: return_output = None else: res = response.json() return_key = {'rfc8040': api_module + ':output', 'draft-bierman02': 'output'} if response.status_code == requests.codes.internal_server_error: return_output = res else: > return_output = res[return_key[RESTCONF_VERSION]] E KeyError: 'transportpce-networkutils:output' transportpce_tests/common/test_utils.py:694: KeyError _________ TransportPCEtesting.test_07_connect_sprdC_1_N1_to_roadmC_PP1 _________ self = def test_07_connect_sprdC_1_N1_to_roadmC_PP1(self): > response = test_utils.transportpce_api_rpc_request( 'transportpce-networkutils', 'init-xpdr-rdm-links', {'links-input': {'xpdr-node': 'SPDR-SC1', 'xpdr-num': '1', 'network-num': '1', 'rdm-node': 'ROADM-C1', 'srg-num': '1', 'termination-point-num': 'SRG1-PP1-TXRX'}}) transportpce_tests/2.2.1/test11_otn_end2end.py:191: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ api_module = 'transportpce-networkutils', rpc = 'init-xpdr-rdm-links' payload = {'links-input': {'network-num': '1', 'rdm-node': 'ROADM-C1', 'srg-num': '1', 'termination-point-num': 'SRG1-PP1-TXRX', ...}} def transportpce_api_rpc_request(api_module: str, rpc: str, payload: dict): # pylint: disable=consider-using-f-string url = "{}/operations/{}:{}".format('{}', api_module, rpc) if payload is None: data = None elif RESTCONF_VERSION == 'draft-bierman02': data = prepend_dict_keys({'input': payload}, api_module + ':') else: data = {'input': payload} response = post_request(url, data) if response.status_code == requests.codes.no_content: return_output = None else: res = response.json() return_key = {'rfc8040': api_module + ':output', 'draft-bierman02': 'output'} if response.status_code == requests.codes.internal_server_error: return_output = res else: > return_output = res[return_key[RESTCONF_VERSION]] E KeyError: 'transportpce-networkutils:output' transportpce_tests/common/test_utils.py:694: KeyError _________ TransportPCEtesting.test_08_connect_roadmC_PP1_to_spdrC_1_N1 _________ self = def test_08_connect_roadmC_PP1_to_spdrC_1_N1(self): > response = test_utils.transportpce_api_rpc_request( 'transportpce-networkutils', 'init-rdm-xpdr-links', {'links-input': {'xpdr-node': 'SPDR-SC1', 'xpdr-num': '1', 'network-num': '1', 'rdm-node': 'ROADM-C1', 'srg-num': '1', 'termination-point-num': 'SRG1-PP1-TXRX'}}) transportpce_tests/2.2.1/test11_otn_end2end.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ api_module = 'transportpce-networkutils', rpc = 'init-rdm-xpdr-links' payload = {'links-input': {'network-num': '1', 'rdm-node': 'ROADM-C1', 'srg-num': '1', 'termination-point-num': 'SRG1-PP1-TXRX', ...}} def transportpce_api_rpc_request(api_module: str, rpc: str, payload: dict): # pylint: disable=consider-using-f-string url = "{}/operations/{}:{}".format('{}', api_module, rpc) if payload is None: data = None elif RESTCONF_VERSION == 'draft-bierman02': data = prepend_dict_keys({'input': payload}, api_module + ':') else: data = {'input': payload} response = post_request(url, data) if response.status_code == requests.codes.no_content: return_output = None else: res = response.json() return_key = {'rfc8040': api_module + ':output', 'draft-bierman02': 'output'} if response.status_code == requests.codes.internal_server_error: return_output = res else: > return_output = res[return_key[RESTCONF_VERSION]] E KeyError: 'transportpce-networkutils:output' transportpce_tests/common/test_utils.py:694: KeyError _________ TransportPCEtesting.test_09_add_omsAttributes_ROADMA_ROADMC __________ self = def test_09_add_omsAttributes_ROADMA_ROADMC(self): # Config ROADMA-ROADMC oms-attributes data = {"span": { "auto-spanloss": "true", "spanloss-base": 11.4, "spanloss-current": 12, "engineered-spanloss": 12.2, "link-concatenation": [{ "SRLG-Id": 0, "fiber-type": "smf", "SRLG-length": 100000, "pmd": 0.5}]}} response = test_utils.add_oms_attr_request( "ROADM-A1-DEG2-DEG2-TTP-TXRXtoROADM-C1-DEG1-DEG1-TTP-TXRX", data) > self.assertEqual(response.status_code, requests.codes.created) E AssertionError: 401 != 201 transportpce_tests/2.2.1/test11_otn_end2end.py:218: AssertionError _________ TransportPCEtesting.test_10_add_omsAttributes_ROADMC_ROADMA __________ self = def test_10_add_omsAttributes_ROADMC_ROADMA(self): # Config ROADMC-ROADMA oms-attributes data = {"span": { "auto-spanloss": "true", "spanloss-base": 11.4, "spanloss-current": 12, "engineered-spanloss": 12.2, "link-concatenation": [{ "SRLG-Id": 0, "fiber-type": "smf", "SRLG-length": 100000, "pmd": 0.5}]}} response = test_utils.add_oms_attr_request( "ROADM-C1-DEG1-DEG1-TTP-TXRXtoROADM-A1-DEG2-DEG2-TTP-TXRX", data) > self.assertEqual(response.status_code, requests.codes.created) E AssertionError: 401 != 201 transportpce_tests/2.2.1/test11_otn_end2end.py:234: AssertionError ________________ TransportPCEtesting.test_11_check_otn_topology ________________ self = def test_11_check_otn_topology(self): response = test_utils.get_ietf_network_request('otn-topology', 'config') > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 401 != 200 transportpce_tests/2.2.1/test11_otn_end2end.py:239: AssertionError _____________ TransportPCEtesting.test_12_create_OCH_OTU4_service ______________ self = def test_12_create_OCH_OTU4_service(self): > response = test_utils.transportpce_api_rpc_request( 'org-openroadm-service', 'service-create', self.cr_serv_input_data) transportpce_tests/2.2.1/test11_otn_end2end.py:244: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ api_module = 'org-openroadm-service', rpc = 'service-create' payload = {'common-id': 'commonId', 'connection-type': 'infrastructure', 'due-date': '2018-06-15T00:00:01Z', 'operator-contact': 'pw1234', ...} def transportpce_api_rpc_request(api_module: str, rpc: str, payload: dict): # pylint: disable=consider-using-f-string url = "{}/operations/{}:{}".format('{}', api_module, rpc) if payload is None: data = None elif RESTCONF_VERSION == 'draft-bierman02': data = prepend_dict_keys({'input': payload}, api_module + ':') else: data = {'input': payload} response = post_request(url, data) if response.status_code == requests.codes.no_content: return_output = None else: res = response.json() return_key = {'rfc8040': api_module + ':output', 'draft-bierman02': 'output'} if response.status_code == requests.codes.internal_server_error: return_output = res else: > return_output = res[return_key[RESTCONF_VERSION]] E KeyError: 'org-openroadm-service:output' transportpce_tests/common/test_utils.py:694: KeyError ______________ TransportPCEtesting.test_13_get_OCH_OTU4_service1 _______________ self = def test_13_get_OCH_OTU4_service1(self): > response = test_utils.get_ordm_serv_list_attr_request( "services", "service1-OCH-OTU4") transportpce_tests/2.2.1/test11_otn_end2end.py:251: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attribute = 'services', value = 'service1-OCH-OTU4' def get_ordm_serv_list_attr_request(attribute: str, value: str): url = {'rfc8040': '{}/data/org-openroadm-service:service-list/{}={}?content=nonconfig', 'draft-bierman02': '{}/operational/org-openroadm-service:service-list/{}/{}'} format_args = ('{}', attribute, value) response = get_request(url[RESTCONF_VERSION].format(*format_args)) res = response.json() return_key = {'rfc8040': 'org-openroadm-service:' + attribute, 'draft-bierman02': attribute} if return_key[RESTCONF_VERSION] in res.keys(): response_attribute = res[return_key[RESTCONF_VERSION]] else: > response_attribute = res['errors']['error'][0] E KeyError: 'errors' transportpce_tests/common/test_utils.py:636: KeyError ____________ TransportPCEtesting.test_14_check_interface_och_spdra _____________ self = def test_14_check_interface_och_spdra(self): response = test_utils.check_node_attribute_request( 'SPDR-SA1', 'interface', 'XPDR1-NETWORK1-761:768') > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 401 != 200 transportpce_tests/2.2.1/test11_otn_end2end.py:267: AssertionError ----------------------------- Captured stdout call ----------------------------- Unauthorized /rests/data/network-topology:network-topology/topology=topology-netconf/node=SPDR-SA1/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR1-NETWORK1-761:768 ____________ TransportPCEtesting.test_15_check_interface_OTU4_spdra ____________ self = def test_15_check_interface_OTU4_spdra(self): response = test_utils.check_node_attribute_request( 'SPDR-SA1', 'interface', 'XPDR1-NETWORK1-OTU') > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 401 != 200 transportpce_tests/2.2.1/test11_otn_end2end.py:288: AssertionError ----------------------------- Captured stdout call ----------------------------- Unauthorized /rests/data/network-topology:network-topology/topology=topology-netconf/node=SPDR-SA1/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR1-NETWORK1-OTU ____________ TransportPCEtesting.test_16_check_interface_och_spdrc _____________ self = def test_16_check_interface_och_spdrc(self): response = test_utils.check_node_attribute_request( 'SPDR-SC1', 'interface', 'XPDR1-NETWORK1-761:768') > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 401 != 200 transportpce_tests/2.2.1/test11_otn_end2end.py:311: AssertionError ----------------------------- Captured stdout call ----------------------------- Unauthorized /rests/data/network-topology:network-topology/topology=topology-netconf/node=SPDR-SC1/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR1-NETWORK1-761:768 ____________ TransportPCEtesting.test_17_check_interface_OTU4_spdrc ____________ self = def test_17_check_interface_OTU4_spdrc(self): response = test_utils.check_node_attribute_request( 'SPDR-SC1', 'interface', 'XPDR1-NETWORK1-OTU') > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 401 != 200 transportpce_tests/2.2.1/test11_otn_end2end.py:332: AssertionError ----------------------------- Captured stdout call ----------------------------- Unauthorized /rests/data/network-topology:network-topology/topology=topology-netconf/node=SPDR-SC1/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR1-NETWORK1-OTU __________ TransportPCEtesting.test_18_check_no_interface_ODU4_spdra ___________ self = def test_18_check_no_interface_ODU4_spdra(self): response = test_utils.check_node_attribute_request( 'SPDR-SA1', 'interface', 'XPDR1-NETWORK1-ODU4') > self.assertEqual(response['status_code'], requests.codes.conflict) E AssertionError: 401 != 409 transportpce_tests/2.2.1/test11_otn_end2end.py:355: AssertionError ----------------------------- Captured stdout call ----------------------------- Unauthorized /rests/data/network-topology:network-topology/topology=topology-netconf/node=SPDR-SA1/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR1-NETWORK1-ODU4 ____________ TransportPCEtesting.test_19_check_openroadm_topo_spdra ____________ self = def test_19_check_openroadm_topo_spdra(self): response = test_utils.get_ietf_network_node_request('openroadm-topology', 'SPDR-SA1-XPDR1', 'config') > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 401 != 200 transportpce_tests/2.2.1/test11_otn_end2end.py:359: AssertionError _________ TransportPCEtesting.test_20_check_openroadm_topo_ROADMA_SRG __________ self = def test_20_check_openroadm_topo_ROADMA_SRG(self): response = test_utils.get_ietf_network_node_request('openroadm-topology', 'ROADM-A1-SRG1', 'config') > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 401 != 200 transportpce_tests/2.2.1/test11_otn_end2end.py:371: AssertionError _________ TransportPCEtesting.test_21_check_openroadm_topo_ROADMA_DEG __________ self = def test_21_check_openroadm_topo_ROADMA_DEG(self): response = test_utils.get_ietf_network_node_request('openroadm-topology', 'ROADM-A1-DEG2', 'config') > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 401 != 200 transportpce_tests/2.2.1/test11_otn_end2end.py:388: AssertionError ____________ TransportPCEtesting.test_22_check_otn_topo_otu4_links _____________ self = def test_22_check_otn_topo_otu4_links(self): response = test_utils.get_ietf_network_request('otn-topology', 'config') > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 401 != 200 transportpce_tests/2.2.1/test11_otn_end2end.py:408: AssertionError _______________ TransportPCEtesting.test_23_create_ODU4_service ________________ self = def test_23_create_ODU4_service(self): self.cr_serv_input_data["service-name"] = "service1-ODU4" self.cr_serv_input_data["service-a-end"]["service-format"] = "ODU" del self.cr_serv_input_data["service-a-end"]["otu-service-rate"] self.cr_serv_input_data["service-a-end"]["odu-service-rate"] = "org-openroadm-otn-common-types:ODU4" self.cr_serv_input_data["service-z-end"]["service-format"] = "ODU" del self.cr_serv_input_data["service-z-end"]["otu-service-rate"] self.cr_serv_input_data["service-z-end"]["odu-service-rate"] = "org-openroadm-otn-common-types:ODU4" > response = test_utils.transportpce_api_rpc_request( 'org-openroadm-service', 'service-create', self.cr_serv_input_data) transportpce_tests/2.2.1/test11_otn_end2end.py:435: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ api_module = 'org-openroadm-service', rpc = 'service-create' payload = {'common-id': 'commonId', 'connection-type': 'infrastructure', 'due-date': '2018-06-15T00:00:01Z', 'operator-contact': 'pw1234', ...} def transportpce_api_rpc_request(api_module: str, rpc: str, payload: dict): # pylint: disable=consider-using-f-string url = "{}/operations/{}:{}".format('{}', api_module, rpc) if payload is None: data = None elif RESTCONF_VERSION == 'draft-bierman02': data = prepend_dict_keys({'input': payload}, api_module + ':') else: data = {'input': payload} response = post_request(url, data) if response.status_code == requests.codes.no_content: return_output = None else: res = response.json() return_key = {'rfc8040': api_module + ':output', 'draft-bierman02': 'output'} if response.status_code == requests.codes.internal_server_error: return_output = res else: > return_output = res[return_key[RESTCONF_VERSION]] E KeyError: 'org-openroadm-service:output' transportpce_tests/common/test_utils.py:694: KeyError ________________ TransportPCEtesting.test_24_get_ODU4_service1 _________________ self = def test_24_get_ODU4_service1(self): > response = test_utils.get_ordm_serv_list_attr_request( "services", "service1-ODU4") transportpce_tests/2.2.1/test11_otn_end2end.py:442: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attribute = 'services', value = 'service1-ODU4' def get_ordm_serv_list_attr_request(attribute: str, value: str): url = {'rfc8040': '{}/data/org-openroadm-service:service-list/{}={}?content=nonconfig', 'draft-bierman02': '{}/operational/org-openroadm-service:service-list/{}/{}'} format_args = ('{}', attribute, value) response = get_request(url[RESTCONF_VERSION].format(*format_args)) res = response.json() return_key = {'rfc8040': 'org-openroadm-service:' + attribute, 'draft-bierman02': attribute} if return_key[RESTCONF_VERSION] in res.keys(): response_attribute = res[return_key[RESTCONF_VERSION]] else: > response_attribute = res['errors']['error'][0] E KeyError: 'errors' transportpce_tests/common/test_utils.py:636: KeyError ____________ TransportPCEtesting.test_25_check_interface_ODU4_spdra ____________ self = def test_25_check_interface_ODU4_spdra(self): response = test_utils.check_node_attribute_request( 'SPDR-SA1', 'interface', 'XPDR1-NETWORK1-ODU4') > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 401 != 200 transportpce_tests/2.2.1/test11_otn_end2end.py:457: AssertionError ----------------------------- Captured stdout call ----------------------------- Unauthorized /rests/data/network-topology:network-topology/topology=topology-netconf/node=SPDR-SA1/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR1-NETWORK1-ODU4 ____________ TransportPCEtesting.test_26_check_interface_ODU4_spdrc ____________ self = def test_26_check_interface_ODU4_spdrc(self): response = test_utils.check_node_attribute_request( 'SPDR-SC1', 'interface', 'XPDR1-NETWORK1-ODU4') > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 401 != 200 transportpce_tests/2.2.1/test11_otn_end2end.py:488: AssertionError ----------------------------- Captured stdout call ----------------------------- Unauthorized /rests/data/network-topology:network-topology/topology=topology-netconf/node=SPDR-SC1/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR1-NETWORK1-ODU4 _______________ TransportPCEtesting.test_27_check_otn_topo_links _______________ self = def test_27_check_otn_topo_links(self): response = test_utils.get_ietf_network_request('otn-topology', 'config') > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 401 != 200 transportpce_tests/2.2.1/test11_otn_end2end.py:518: AssertionError ________________ TransportPCEtesting.test_28_check_otn_topo_tp _________________ self = def test_28_check_otn_topo_tp(self): response = test_utils.get_ietf_network_request('otn-topology', 'config') > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 401 != 200 transportpce_tests/2.2.1/test11_otn_end2end.py:546: AssertionError _______________ TransportPCEtesting.test_29_create_10GE_service ________________ self = def test_29_create_10GE_service(self): self.cr_serv_input_data["service-name"] = "service1-10GE" self.cr_serv_input_data["connection-type"] = "service" self.cr_serv_input_data["service-a-end"]["service-rate"] = "10" self.cr_serv_input_data["service-a-end"]["service-format"] = "Ethernet" del self.cr_serv_input_data["service-a-end"]["odu-service-rate"] self.cr_serv_input_data["service-a-end"]["ethernet-encoding"] = "10GBASE-R" self.cr_serv_input_data["service-a-end"]["tx-direction"][0]["port"]["port-name"] = "XPDR1-CLIENT1" self.cr_serv_input_data["service-a-end"]["rx-direction"][0]["port"]["port-name"] = "XPDR1-CLIENT1" self.cr_serv_input_data["service-z-end"]["service-rate"] = "10" self.cr_serv_input_data["service-z-end"]["service-format"] = "Ethernet" del self.cr_serv_input_data["service-z-end"]["odu-service-rate"] self.cr_serv_input_data["service-z-end"]["ethernet-encoding"] = "10GBASE-R" self.cr_serv_input_data["service-z-end"]["tx-direction"][0]["port"]["port-name"] = "XPDR1-CLIENT1" self.cr_serv_input_data["service-z-end"]["rx-direction"][0]["port"]["port-name"] = "XPDR1-CLIENT1" > response = test_utils.transportpce_api_rpc_request( 'org-openroadm-service', 'service-create', self.cr_serv_input_data) transportpce_tests/2.2.1/test11_otn_end2end.py:575: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ api_module = 'org-openroadm-service', rpc = 'service-create' payload = {'common-id': 'commonId', 'connection-type': 'service', 'due-date': '2018-06-15T00:00:01Z', 'operator-contact': 'pw1234', ...} def transportpce_api_rpc_request(api_module: str, rpc: str, payload: dict): # pylint: disable=consider-using-f-string url = "{}/operations/{}:{}".format('{}', api_module, rpc) if payload is None: data = None elif RESTCONF_VERSION == 'draft-bierman02': data = prepend_dict_keys({'input': payload}, api_module + ':') else: data = {'input': payload} response = post_request(url, data) if response.status_code == requests.codes.no_content: return_output = None else: res = response.json() return_key = {'rfc8040': api_module + ':output', 'draft-bierman02': 'output'} if response.status_code == requests.codes.internal_server_error: return_output = res else: > return_output = res[return_key[RESTCONF_VERSION]] E KeyError: 'org-openroadm-service:output' transportpce_tests/common/test_utils.py:694: KeyError ________________ TransportPCEtesting.test_30_get_10GE_service1 _________________ self = def test_30_get_10GE_service1(self): > response = test_utils.get_ordm_serv_list_attr_request( "services", "service1-10GE") transportpce_tests/2.2.1/test11_otn_end2end.py:582: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attribute = 'services', value = 'service1-10GE' def get_ordm_serv_list_attr_request(attribute: str, value: str): url = {'rfc8040': '{}/data/org-openroadm-service:service-list/{}={}?content=nonconfig', 'draft-bierman02': '{}/operational/org-openroadm-service:service-list/{}/{}'} format_args = ('{}', attribute, value) response = get_request(url[RESTCONF_VERSION].format(*format_args)) res = response.json() return_key = {'rfc8040': 'org-openroadm-service:' + attribute, 'draft-bierman02': attribute} if return_key[RESTCONF_VERSION] in res.keys(): response_attribute = res[return_key[RESTCONF_VERSION]] else: > response_attribute = res['errors']['error'][0] E KeyError: 'errors' transportpce_tests/common/test_utils.py:636: KeyError ________ TransportPCEtesting.test_31_check_interface_10GE_CLIENT_spdra _________ self = def test_31_check_interface_10GE_CLIENT_spdra(self): response = test_utils.check_node_attribute_request( 'SPDR-SA1', 'interface', 'XPDR1-CLIENT1-ETHERNET10G') > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 401 != 200 transportpce_tests/2.2.1/test11_otn_end2end.py:597: AssertionError ----------------------------- Captured stdout call ----------------------------- Unauthorized /rests/data/network-topology:network-topology/topology=topology-netconf/node=SPDR-SA1/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR1-CLIENT1-ETHERNET10G ________ TransportPCEtesting.test_32_check_interface_ODU2E_CLIENT_spdra ________ self = def test_32_check_interface_ODU2E_CLIENT_spdra(self): response = test_utils.check_node_attribute_request( 'SPDR-SA1', 'interface', 'XPDR1-CLIENT1-ODU2e:service1-10GE') > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 401 != 200 transportpce_tests/2.2.1/test11_otn_end2end.py:613: AssertionError ----------------------------- Captured stdout call ----------------------------- Unauthorized /rests/data/network-topology:network-topology/topology=topology-netconf/node=SPDR-SA1/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR1-CLIENT1-ODU2e:service1-10GE _______ TransportPCEtesting.test_33_check_interface_ODU2E_NETWORK_spdra ________ self = def test_33_check_interface_ODU2E_NETWORK_spdra(self): response = test_utils.check_node_attribute_request( 'SPDR-SA1', 'interface', 'XPDR1-NETWORK1-ODU2e:service1-10GE') > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 401 != 200 transportpce_tests/2.2.1/test11_otn_end2end.py:637: AssertionError ----------------------------- Captured stdout call ----------------------------- Unauthorized /rests/data/network-topology:network-topology/topology=topology-netconf/node=SPDR-SA1/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR1-NETWORK1-ODU2e:service1-10GE ___________ TransportPCEtesting.test_34_check_ODU2E_connection_spdra ___________ self = def test_34_check_ODU2E_connection_spdra(self): response = test_utils.check_node_attribute_request( 'SPDR-SA1', 'odu-connection', 'XPDR1-CLIENT1-ODU2e-x-XPDR1-NETWORK1-ODU2e') > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 401 != 200 transportpce_tests/2.2.1/test11_otn_end2end.py:665: AssertionError ----------------------------- Captured stdout call ----------------------------- Unauthorized /rests/data/network-topology:network-topology/topology=topology-netconf/node=SPDR-SA1/yang-ext:mount/org-openroadm-device:org-openroadm-device/odu-connection=XPDR1-CLIENT1-ODU2e-x-XPDR1-NETWORK1-ODU2e ________ TransportPCEtesting.test_35_check_interface_10GE_CLIENT_spdrc _________ self = def test_35_check_interface_10GE_CLIENT_spdrc(self): response = test_utils.check_node_attribute_request( 'SPDR-SC1', 'interface', 'XPDR1-CLIENT1-ETHERNET10G') > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 401 != 200 transportpce_tests/2.2.1/test11_otn_end2end.py:682: AssertionError ----------------------------- Captured stdout call ----------------------------- Unauthorized /rests/data/network-topology:network-topology/topology=topology-netconf/node=SPDR-SC1/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR1-CLIENT1-ETHERNET10G ________ TransportPCEtesting.test_36_check_interface_ODU2E_CLIENT_spdrc ________ self = def test_36_check_interface_ODU2E_CLIENT_spdrc(self): response = test_utils.check_node_attribute_request( 'SPDR-SC1', 'interface', 'XPDR1-CLIENT1-ODU2e:service1-10GE') > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 401 != 200 transportpce_tests/2.2.1/test11_otn_end2end.py:698: AssertionError ----------------------------- Captured stdout call ----------------------------- Unauthorized /rests/data/network-topology:network-topology/topology=topology-netconf/node=SPDR-SC1/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR1-CLIENT1-ODU2e:service1-10GE _______ TransportPCEtesting.test_37_check_interface_ODU2E_NETWORK_spdrc ________ self = def test_37_check_interface_ODU2E_NETWORK_spdrc(self): response = test_utils.check_node_attribute_request( 'SPDR-SC1', 'interface', 'XPDR1-NETWORK1-ODU2e:service1-10GE') > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 401 != 200 transportpce_tests/2.2.1/test11_otn_end2end.py:722: AssertionError ----------------------------- Captured stdout call ----------------------------- Unauthorized /rests/data/network-topology:network-topology/topology=topology-netconf/node=SPDR-SC1/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR1-NETWORK1-ODU2e:service1-10GE ___________ TransportPCEtesting.test_38_check_ODU2E_connection_spdrc ___________ self = def test_38_check_ODU2E_connection_spdrc(self): response = test_utils.check_node_attribute_request( 'SPDR-SC1', 'odu-connection', 'XPDR1-CLIENT1-ODU2e-x-XPDR1-NETWORK1-ODU2e') > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 401 != 200 transportpce_tests/2.2.1/test11_otn_end2end.py:754: AssertionError ----------------------------- Captured stdout call ----------------------------- Unauthorized /rests/data/network-topology:network-topology/topology=topology-netconf/node=SPDR-SC1/yang-ext:mount/org-openroadm-device:org-openroadm-device/odu-connection=XPDR1-CLIENT1-ODU2e-x-XPDR1-NETWORK1-ODU2e _______________ TransportPCEtesting.test_39_check_otn_topo_links _______________ self = def test_39_check_otn_topo_links(self): response = test_utils.get_ietf_network_request('otn-topology', 'config') > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 401 != 200 transportpce_tests/2.2.1/test11_otn_end2end.py:770: AssertionError ________________ TransportPCEtesting.test_40_check_otn_topo_tp _________________ self = def test_40_check_otn_topo_tp(self): response = test_utils.get_ietf_network_request('otn-topology', 'config') > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 401 != 200 transportpce_tests/2.2.1/test11_otn_end2end.py:783: AssertionError _______________ TransportPCEtesting.test_41_delete_10GE_service ________________ self = def test_41_delete_10GE_service(self): self.del_serv_input_data["service-delete-req-info"]["service-name"] = "service1-10GE" > response = test_utils.transportpce_api_rpc_request( 'org-openroadm-service', 'service-delete', self.del_serv_input_data) transportpce_tests/2.2.1/test11_otn_end2end.py:801: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ api_module = 'org-openroadm-service', rpc = 'service-delete' payload = {'sdnc-request-header': {'notification-url': 'http://localhost:8585/NotificationServer/notify', 'request-id': 'e3028ba... 'rpc-action': 'service-delete'}, 'service-delete-req-info': {'service-name': 'service1-10GE', 'tail-retention': 'no'}} def transportpce_api_rpc_request(api_module: str, rpc: str, payload: dict): # pylint: disable=consider-using-f-string url = "{}/operations/{}:{}".format('{}', api_module, rpc) if payload is None: data = None elif RESTCONF_VERSION == 'draft-bierman02': data = prepend_dict_keys({'input': payload}, api_module + ':') else: data = {'input': payload} response = post_request(url, data) if response.status_code == requests.codes.no_content: return_output = None else: res = response.json() return_key = {'rfc8040': api_module + ':output', 'draft-bierman02': 'output'} if response.status_code == requests.codes.internal_server_error: return_output = res else: > return_output = res[return_key[RESTCONF_VERSION]] E KeyError: 'org-openroadm-service:output' transportpce_tests/common/test_utils.py:694: KeyError ________________ TransportPCEtesting.test_42_check_service_list ________________ self = def test_42_check_service_list(self): > response = test_utils.get_ordm_serv_list_request() transportpce_tests/2.2.1/test11_otn_end2end.py:808: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def get_ordm_serv_list_request(): url = {'rfc8040': '{}/data/org-openroadm-service:service-list?content=nonconfig', 'draft-bierman02': '{}/operational/org-openroadm-service:service-list/'} response = get_request(url[RESTCONF_VERSION]) res = response.json() return_key = {'rfc8040': 'org-openroadm-service:service-list', 'draft-bierman02': 'service-list'} if return_key[RESTCONF_VERSION] in res.keys(): response_attribute = res[return_key[RESTCONF_VERSION]] else: > response_attribute = res['errors']['error'][0] E KeyError: 'errors' transportpce_tests/common/test_utils.py:620: KeyError _________ TransportPCEtesting.test_43_check_no_ODU2e_connection_spdra __________ self = def test_43_check_no_ODU2e_connection_spdra(self): > response = test_utils.check_node_request("SPDR-SA1") transportpce_tests/2.2.1/test11_otn_end2end.py:813: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ node = 'SPDR-SA1' def check_node_request(node: str): # pylint: disable=line-too-long url = {'rfc8040': '{}/data/network-topology:network-topology/topology=topology-netconf/node={}/yang-ext:mount/org-openroadm-device:org-openroadm-device?content=config', # nopep8 'draft-bierman02': '{}/config/network-topology:network-topology/topology/topology-netconf/node/{}/yang-ext:mount/org-openroadm-device:org-openroadm-device'} # nopep8 response = get_request(url[RESTCONF_VERSION].format('{}', node)) res = response.json() return_key = {'rfc8040': 'org-openroadm-device:org-openroadm-device', 'draft-bierman02': 'org-openroadm-device'} if return_key[RESTCONF_VERSION] in res.keys(): response_attribute = res[return_key[RESTCONF_VERSION]] else: > response_attribute = res['errors']['error'][0] E KeyError: 'errors' transportpce_tests/common/test_utils.py:392: KeyError ______ TransportPCEtesting.test_44_check_no_interface_ODU2E_NETWORK_spdra ______ self = def test_44_check_no_interface_ODU2E_NETWORK_spdra(self): response = test_utils.check_node_attribute_request( 'SPDR-SA1', 'interface', 'XPDR1-NETWORK1-ODU2e-service1') > self.assertEqual(response['status_code'], requests.codes.conflict) E AssertionError: 401 != 409 transportpce_tests/2.2.1/test11_otn_end2end.py:820: AssertionError ----------------------------- Captured stdout call ----------------------------- Unauthorized /rests/data/network-topology:network-topology/topology=topology-netconf/node=SPDR-SA1/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR1-NETWORK1-ODU2e-service1 ______ TransportPCEtesting.test_45_check_no_interface_ODU2E_CLIENT_spdra _______ self = def test_45_check_no_interface_ODU2E_CLIENT_spdra(self): response = test_utils.check_node_attribute_request( 'SPDR-SA1', 'interface', 'XPDR1-CLIENT1-ODU2e-service1') > self.assertEqual(response['status_code'], requests.codes.conflict) E AssertionError: 401 != 409 transportpce_tests/2.2.1/test11_otn_end2end.py:825: AssertionError ----------------------------- Captured stdout call ----------------------------- Unauthorized /rests/data/network-topology:network-topology/topology=topology-netconf/node=SPDR-SA1/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR1-CLIENT1-ODU2e-service1 _______ TransportPCEtesting.test_46_check_no_interface_10GE_CLIENT_spdra _______ self = def test_46_check_no_interface_10GE_CLIENT_spdra(self): response = test_utils.check_node_attribute_request( 'SPDR-SA1', 'interface', 'XPDR1-CLIENT1-ETHERNET10G') > self.assertEqual(response['status_code'], requests.codes.conflict) E AssertionError: 401 != 409 transportpce_tests/2.2.1/test11_otn_end2end.py:830: AssertionError ----------------------------- Captured stdout call ----------------------------- Unauthorized /rests/data/network-topology:network-topology/topology=topology-netconf/node=SPDR-SA1/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR1-CLIENT1-ETHERNET10G _______________ TransportPCEtesting.test_47_check_otn_topo_links _______________ self = def test_47_check_otn_topo_links(self): response = test_utils.get_ietf_network_request('otn-topology', 'config') > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 401 != 200 transportpce_tests/2.2.1/test11_otn_end2end.py:834: AssertionError ________________ TransportPCEtesting.test_48_check_otn_topo_tp _________________ self = def test_48_check_otn_topo_tp(self): response = test_utils.get_ietf_network_request('otn-topology', 'config') > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 401 != 200 transportpce_tests/2.2.1/test11_otn_end2end.py:847: AssertionError _______________ TransportPCEtesting.test_49_delete_ODU4_service ________________ self = def test_49_delete_ODU4_service(self): self.del_serv_input_data["service-delete-req-info"]["service-name"] = "service1-ODU4" > response = test_utils.transportpce_api_rpc_request( 'org-openroadm-service', 'service-delete', self.del_serv_input_data) transportpce_tests/2.2.1/test11_otn_end2end.py:860: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ api_module = 'org-openroadm-service', rpc = 'service-delete' payload = {'sdnc-request-header': {'notification-url': 'http://localhost:8585/NotificationServer/notify', 'request-id': 'e3028ba... 'rpc-action': 'service-delete'}, 'service-delete-req-info': {'service-name': 'service1-ODU4', 'tail-retention': 'no'}} def transportpce_api_rpc_request(api_module: str, rpc: str, payload: dict): # pylint: disable=consider-using-f-string url = "{}/operations/{}:{}".format('{}', api_module, rpc) if payload is None: data = None elif RESTCONF_VERSION == 'draft-bierman02': data = prepend_dict_keys({'input': payload}, api_module + ':') else: data = {'input': payload} response = post_request(url, data) if response.status_code == requests.codes.no_content: return_output = None else: res = response.json() return_key = {'rfc8040': api_module + ':output', 'draft-bierman02': 'output'} if response.status_code == requests.codes.internal_server_error: return_output = res else: > return_output = res[return_key[RESTCONF_VERSION]] E KeyError: 'org-openroadm-service:output' transportpce_tests/common/test_utils.py:694: KeyError ________________ TransportPCEtesting.test_50_check_service_list ________________ self = def test_50_check_service_list(self): > response = test_utils.get_ordm_serv_list_request() transportpce_tests/2.2.1/test11_otn_end2end.py:867: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def get_ordm_serv_list_request(): url = {'rfc8040': '{}/data/org-openroadm-service:service-list?content=nonconfig', 'draft-bierman02': '{}/operational/org-openroadm-service:service-list/'} response = get_request(url[RESTCONF_VERSION]) res = response.json() return_key = {'rfc8040': 'org-openroadm-service:service-list', 'draft-bierman02': 'service-list'} if return_key[RESTCONF_VERSION] in res.keys(): response_attribute = res[return_key[RESTCONF_VERSION]] else: > response_attribute = res['errors']['error'][0] E KeyError: 'errors' transportpce_tests/common/test_utils.py:620: KeyError __________ TransportPCEtesting.test_51_check_no_interface_ODU4_spdra ___________ self = def test_51_check_no_interface_ODU4_spdra(self): response = test_utils.check_node_attribute_request( 'SPDR-SA1', 'interface', 'XPDR1-NETWORK1-ODU4') > self.assertEqual(response['status_code'], requests.codes.conflict) E AssertionError: 401 != 409 transportpce_tests/2.2.1/test11_otn_end2end.py:874: AssertionError ----------------------------- Captured stdout call ----------------------------- Unauthorized /rests/data/network-topology:network-topology/topology=topology-netconf/node=SPDR-SA1/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR1-NETWORK1-ODU4 _______________ TransportPCEtesting.test_52_check_otn_topo_links _______________ self = def test_52_check_otn_topo_links(self): > self.test_22_check_otn_topo_otu4_links() transportpce_tests/2.2.1/test11_otn_end2end.py:877: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ transportpce_tests/2.2.1/test11_otn_end2end.py:408: in test_22_check_otn_topo_otu4_links self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 401 != 200 ________________ TransportPCEtesting.test_53_check_otn_topo_tp _________________ self = def test_53_check_otn_topo_tp(self): response = test_utils.get_ietf_network_request('otn-topology', 'config') > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 401 != 200 transportpce_tests/2.2.1/test11_otn_end2end.py:881: AssertionError _____________ TransportPCEtesting.test_54_delete_OCH_OTU4_service ______________ self = def test_54_delete_OCH_OTU4_service(self): self.del_serv_input_data["service-delete-req-info"]["service-name"] = "service1-OCH-OTU4" > response = test_utils.transportpce_api_rpc_request( 'org-openroadm-service', 'service-delete', self.del_serv_input_data) transportpce_tests/2.2.1/test11_otn_end2end.py:894: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ api_module = 'org-openroadm-service', rpc = 'service-delete' payload = {'sdnc-request-header': {'notification-url': 'http://localhost:8585/NotificationServer/notify', 'request-id': 'e3028ba...c-action': 'service-delete'}, 'service-delete-req-info': {'service-name': 'service1-OCH-OTU4', 'tail-retention': 'no'}} def transportpce_api_rpc_request(api_module: str, rpc: str, payload: dict): # pylint: disable=consider-using-f-string url = "{}/operations/{}:{}".format('{}', api_module, rpc) if payload is None: data = None elif RESTCONF_VERSION == 'draft-bierman02': data = prepend_dict_keys({'input': payload}, api_module + ':') else: data = {'input': payload} response = post_request(url, data) if response.status_code == requests.codes.no_content: return_output = None else: res = response.json() return_key = {'rfc8040': api_module + ':output', 'draft-bierman02': 'output'} if response.status_code == requests.codes.internal_server_error: return_output = res else: > return_output = res[return_key[RESTCONF_VERSION]] E KeyError: 'org-openroadm-service:output' transportpce_tests/common/test_utils.py:694: KeyError __________________ TransportPCEtesting.test_55_get_no_service __________________ self = def test_55_get_no_service(self): > response = test_utils.get_ordm_serv_list_request() transportpce_tests/2.2.1/test11_otn_end2end.py:901: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def get_ordm_serv_list_request(): url = {'rfc8040': '{}/data/org-openroadm-service:service-list?content=nonconfig', 'draft-bierman02': '{}/operational/org-openroadm-service:service-list/'} response = get_request(url[RESTCONF_VERSION]) res = response.json() return_key = {'rfc8040': 'org-openroadm-service:service-list', 'draft-bierman02': 'service-list'} if return_key[RESTCONF_VERSION] in res.keys(): response_attribute = res[return_key[RESTCONF_VERSION]] else: > response_attribute = res['errors']['error'][0] E KeyError: 'errors' transportpce_tests/common/test_utils.py:620: KeyError __________ TransportPCEtesting.test_56_check_no_interface_OTU4_spdra ___________ self = def test_56_check_no_interface_OTU4_spdra(self): response = test_utils.check_node_attribute_request( 'SPDR-SA1', 'interface', 'XPDR1-NETWORK1-OTU') > self.assertEqual(response['status_code'], requests.codes.conflict) E AssertionError: 401 != 409 transportpce_tests/2.2.1/test11_otn_end2end.py:907: AssertionError ----------------------------- Captured stdout call ----------------------------- Unauthorized /rests/data/network-topology:network-topology/topology=topology-netconf/node=SPDR-SA1/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR1-NETWORK1-OTU ___________ TransportPCEtesting.test_57_check_no_interface_OCH_spdra ___________ self = def test_57_check_no_interface_OCH_spdra(self): response = test_utils.check_node_attribute_request( 'SPDR-SA1', 'interface', 'XPDR1-NETWORK1-1') > self.assertEqual(response['status_code'], requests.codes.conflict) E AssertionError: 401 != 409 transportpce_tests/2.2.1/test11_otn_end2end.py:912: AssertionError ----------------------------- Captured stdout call ----------------------------- Unauthorized /rests/data/network-topology:network-topology/topology=topology-netconf/node=SPDR-SA1/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR1-NETWORK1-1 _______________ TransportPCEtesting.test_58_getLinks_OtnTopology _______________ self = def test_58_getLinks_OtnTopology(self): response = test_utils.get_ietf_network_request('otn-topology', 'config') > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 401 != 200 transportpce_tests/2.2.1/test11_otn_end2end.py:916: AssertionError ____________ TransportPCEtesting.test_59_check_openroadm_topo_spdra ____________ self = def test_59_check_openroadm_topo_spdra(self): response = test_utils.get_ietf_network_node_request('openroadm-topology', 'SPDR-SA1-XPDR1', 'config') > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 401 != 200 transportpce_tests/2.2.1/test11_otn_end2end.py:921: AssertionError _________ TransportPCEtesting.test_60_check_openroadm_topo_ROADMA_SRG __________ self = def test_60_check_openroadm_topo_ROADMA_SRG(self): response = test_utils.get_ietf_network_node_request('openroadm-topology', 'ROADM-A1-SRG1', 'config') > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 401 != 200 transportpce_tests/2.2.1/test11_otn_end2end.py:929: AssertionError _________ TransportPCEtesting.test_61_check_openroadm_topo_ROADMA_DEG __________ self = def test_61_check_openroadm_topo_ROADMA_DEG(self): response = test_utils.get_ietf_network_node_request('openroadm-topology', 'ROADM-A1-DEG2', 'config') > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 401 != 200 transportpce_tests/2.2.1/test11_otn_end2end.py:945: AssertionError _________ TransportPCEtesting.test_62_connect_sprdA_3_N1_to_roadmA_PP2 _________ self = def test_62_connect_sprdA_3_N1_to_roadmA_PP2(self): > response = test_utils.transportpce_api_rpc_request( 'transportpce-networkutils', 'init-xpdr-rdm-links', {'links-input': {'xpdr-node': 'SPDR-SA1', 'xpdr-num': '3', 'network-num': '1', 'rdm-node': 'ROADM-A1', 'srg-num': '1', 'termination-point-num': 'SRG1-PP2-TXRX'}}) transportpce_tests/2.2.1/test11_otn_end2end.py:965: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ api_module = 'transportpce-networkutils', rpc = 'init-xpdr-rdm-links' payload = {'links-input': {'network-num': '1', 'rdm-node': 'ROADM-A1', 'srg-num': '1', 'termination-point-num': 'SRG1-PP2-TXRX', ...}} def transportpce_api_rpc_request(api_module: str, rpc: str, payload: dict): # pylint: disable=consider-using-f-string url = "{}/operations/{}:{}".format('{}', api_module, rpc) if payload is None: data = None elif RESTCONF_VERSION == 'draft-bierman02': data = prepend_dict_keys({'input': payload}, api_module + ':') else: data = {'input': payload} response = post_request(url, data) if response.status_code == requests.codes.no_content: return_output = None else: res = response.json() return_key = {'rfc8040': api_module + ':output', 'draft-bierman02': 'output'} if response.status_code == requests.codes.internal_server_error: return_output = res else: > return_output = res[return_key[RESTCONF_VERSION]] E KeyError: 'transportpce-networkutils:output' transportpce_tests/common/test_utils.py:694: KeyError _________ TransportPCEtesting.test_63_connect_roadmA_PP2_to_spdrA_3_N1 _________ self = def test_63_connect_roadmA_PP2_to_spdrA_3_N1(self): > response = test_utils.transportpce_api_rpc_request( 'transportpce-networkutils', 'init-rdm-xpdr-links', {'links-input': {'xpdr-node': 'SPDR-SA1', 'xpdr-num': '3', 'network-num': '1', 'rdm-node': 'ROADM-A1', 'srg-num': '1', 'termination-point-num': 'SRG1-PP2-TXRX'}}) transportpce_tests/2.2.1/test11_otn_end2end.py:972: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ api_module = 'transportpce-networkutils', rpc = 'init-rdm-xpdr-links' payload = {'links-input': {'network-num': '1', 'rdm-node': 'ROADM-A1', 'srg-num': '1', 'termination-point-num': 'SRG1-PP2-TXRX', ...}} def transportpce_api_rpc_request(api_module: str, rpc: str, payload: dict): # pylint: disable=consider-using-f-string url = "{}/operations/{}:{}".format('{}', api_module, rpc) if payload is None: data = None elif RESTCONF_VERSION == 'draft-bierman02': data = prepend_dict_keys({'input': payload}, api_module + ':') else: data = {'input': payload} response = post_request(url, data) if response.status_code == requests.codes.no_content: return_output = None else: res = response.json() return_key = {'rfc8040': api_module + ':output', 'draft-bierman02': 'output'} if response.status_code == requests.codes.internal_server_error: return_output = res else: > return_output = res[return_key[RESTCONF_VERSION]] E KeyError: 'transportpce-networkutils:output' transportpce_tests/common/test_utils.py:694: KeyError _________ TransportPCEtesting.test_64_connect_sprdC_3_N1_to_roadmC_PP2 _________ self = def test_64_connect_sprdC_3_N1_to_roadmC_PP2(self): > response = test_utils.transportpce_api_rpc_request( 'transportpce-networkutils', 'init-xpdr-rdm-links', {'links-input': {'xpdr-node': 'SPDR-SC1', 'xpdr-num': '3', 'network-num': '1', 'rdm-node': 'ROADM-C1', 'srg-num': '1', 'termination-point-num': 'SRG1-PP2-TXRX'}}) transportpce_tests/2.2.1/test11_otn_end2end.py:979: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ api_module = 'transportpce-networkutils', rpc = 'init-xpdr-rdm-links' payload = {'links-input': {'network-num': '1', 'rdm-node': 'ROADM-C1', 'srg-num': '1', 'termination-point-num': 'SRG1-PP2-TXRX', ...}} def transportpce_api_rpc_request(api_module: str, rpc: str, payload: dict): # pylint: disable=consider-using-f-string url = "{}/operations/{}:{}".format('{}', api_module, rpc) if payload is None: data = None elif RESTCONF_VERSION == 'draft-bierman02': data = prepend_dict_keys({'input': payload}, api_module + ':') else: data = {'input': payload} response = post_request(url, data) if response.status_code == requests.codes.no_content: return_output = None else: res = response.json() return_key = {'rfc8040': api_module + ':output', 'draft-bierman02': 'output'} if response.status_code == requests.codes.internal_server_error: return_output = res else: > return_output = res[return_key[RESTCONF_VERSION]] E KeyError: 'transportpce-networkutils:output' transportpce_tests/common/test_utils.py:694: KeyError _________ TransportPCEtesting.test_65_connect_roadmC_PP2_to_spdrC_3_N1 _________ self = def test_65_connect_roadmC_PP2_to_spdrC_3_N1(self): > response = test_utils.transportpce_api_rpc_request( 'transportpce-networkutils', 'init-rdm-xpdr-links', {'links-input': {'xpdr-node': 'SPDR-SC1', 'xpdr-num': '3', 'network-num': '1', 'rdm-node': 'ROADM-C1', 'srg-num': '1', 'termination-point-num': 'SRG1-PP2-TXRX'}}) transportpce_tests/2.2.1/test11_otn_end2end.py:986: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ api_module = 'transportpce-networkutils', rpc = 'init-rdm-xpdr-links' payload = {'links-input': {'network-num': '1', 'rdm-node': 'ROADM-C1', 'srg-num': '1', 'termination-point-num': 'SRG1-PP2-TXRX', ...}} def transportpce_api_rpc_request(api_module: str, rpc: str, payload: dict): # pylint: disable=consider-using-f-string url = "{}/operations/{}:{}".format('{}', api_module, rpc) if payload is None: data = None elif RESTCONF_VERSION == 'draft-bierman02': data = prepend_dict_keys({'input': payload}, api_module + ':') else: data = {'input': payload} response = post_request(url, data) if response.status_code == requests.codes.no_content: return_output = None else: res = response.json() return_key = {'rfc8040': api_module + ':output', 'draft-bierman02': 'output'} if response.status_code == requests.codes.internal_server_error: return_output = res else: > return_output = res[return_key[RESTCONF_VERSION]] E KeyError: 'transportpce-networkutils:output' transportpce_tests/common/test_utils.py:694: KeyError ____________ TransportPCEtesting.test_66_create_OCH_OTU4_service_2 _____________ self = def test_66_create_OCH_OTU4_service_2(self): # pylint: disable=line-too-long self.cr_serv_input_data["service-name"] = "service2-OCH-OTU4" self.cr_serv_input_data["connection-type"] = "infrastructure" self.cr_serv_input_data["service-a-end"]["service-rate"] = "100" self.cr_serv_input_data["service-a-end"]["service-format"] = "OTU" self.cr_serv_input_data["service-a-end"]["tx-direction"][0]["port"]["port-device-name"] = "SPDR-SA1-XPDR3" self.cr_serv_input_data["service-a-end"]["tx-direction"][0]["port"]["port-name"] = "XPDR3-NETWORK1" self.cr_serv_input_data["service-a-end"]["rx-direction"][0]["port"]["port-device-name"] = "SPDR-SA1-XPDR3" self.cr_serv_input_data["service-a-end"]["rx-direction"][0]["port"]["port-name"] = "XPDR3-NETWORK1" self.cr_serv_input_data["service-a-end"]["otu-service-rate"] = "org-openroadm-otn-common-types:OTU4" self.cr_serv_input_data["service-z-end"]["service-rate"] = "100" self.cr_serv_input_data["service-z-end"]["service-format"] = "OTU" self.cr_serv_input_data["service-z-end"]["tx-direction"][0]["port"]["port-device-name"] = "SPDR-SC1-XPDR3" self.cr_serv_input_data["service-z-end"]["tx-direction"][0]["port"]["port-name"] = "XPDR3-NETWORK1" self.cr_serv_input_data["service-z-end"]["rx-direction"][0]["port"]["port-device-name"] = "SPDR-SC1-XPDR3" self.cr_serv_input_data["service-z-end"]["rx-direction"][0]["port"]["port-name"] = "XPDR3-NETWORK1" self.cr_serv_input_data["service-z-end"]["otu-service-rate"] = "org-openroadm-otn-common-types:OTU4" > response = test_utils.transportpce_api_rpc_request( 'org-openroadm-service', 'service-create', self.cr_serv_input_data) transportpce_tests/2.2.1/test11_otn_end2end.py:1010: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ api_module = 'org-openroadm-service', rpc = 'service-create' payload = {'common-id': 'commonId', 'connection-type': 'infrastructure', 'due-date': '2018-06-15T00:00:01Z', 'operator-contact': 'pw1234', ...} def transportpce_api_rpc_request(api_module: str, rpc: str, payload: dict): # pylint: disable=consider-using-f-string url = "{}/operations/{}:{}".format('{}', api_module, rpc) if payload is None: data = None elif RESTCONF_VERSION == 'draft-bierman02': data = prepend_dict_keys({'input': payload}, api_module + ':') else: data = {'input': payload} response = post_request(url, data) if response.status_code == requests.codes.no_content: return_output = None else: res = response.json() return_key = {'rfc8040': api_module + ':output', 'draft-bierman02': 'output'} if response.status_code == requests.codes.internal_server_error: return_output = res else: > return_output = res[return_key[RESTCONF_VERSION]] E KeyError: 'org-openroadm-service:output' transportpce_tests/common/test_utils.py:694: KeyError ______________ TransportPCEtesting.test_67_get_OCH_OTU4_service2 _______________ self = def test_67_get_OCH_OTU4_service2(self): > response = test_utils.get_ordm_serv_list_attr_request( "services", "service2-OCH-OTU4") transportpce_tests/2.2.1/test11_otn_end2end.py:1017: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attribute = 'services', value = 'service2-OCH-OTU4' def get_ordm_serv_list_attr_request(attribute: str, value: str): url = {'rfc8040': '{}/data/org-openroadm-service:service-list/{}={}?content=nonconfig', 'draft-bierman02': '{}/operational/org-openroadm-service:service-list/{}/{}'} format_args = ('{}', attribute, value) response = get_request(url[RESTCONF_VERSION].format(*format_args)) res = response.json() return_key = {'rfc8040': 'org-openroadm-service:' + attribute, 'draft-bierman02': attribute} if return_key[RESTCONF_VERSION] in res.keys(): response_attribute = res[return_key[RESTCONF_VERSION]] else: > response_attribute = res['errors']['error'][0] E KeyError: 'errors' transportpce_tests/common/test_utils.py:636: KeyError ______________ TransportPCEtesting.test_68_create_ODU4_service_2 _______________ self = def test_68_create_ODU4_service_2(self): # pylint: disable=line-too-long self.cr_serv_input_data["service-name"] = "service2-ODU4" self.cr_serv_input_data["service-a-end"]["service-format"] = "ODU" self.cr_serv_input_data["service-a-end"]["tx-direction"][0]["port"]["port-device-name"] = "SPDR-SA1-XPDR3" self.cr_serv_input_data["service-a-end"]["tx-direction"][0]["port"]["port-name"] = "XPDR3-NETWORK1" self.cr_serv_input_data["service-a-end"]["rx-direction"][0]["port"]["port-device-name"] = "SPDR-SA1-XPDR3" self.cr_serv_input_data["service-a-end"]["rx-direction"][0]["port"]["port-name"] = "XPDR3-NETWORK1" self.cr_serv_input_data["service-a-end"]["odu-service-rate"] = "org-openroadm-otn-common-types:ODU4" del self.cr_serv_input_data["service-a-end"]["otu-service-rate"] self.cr_serv_input_data["service-z-end"]["service-format"] = "ODU" self.cr_serv_input_data["service-z-end"]["odu-service-rate"] = "org-openroadm-otn-common-types:ODU4" self.cr_serv_input_data["service-z-end"]["tx-direction"][0]["port"]["port-device-name"] = "SPDR-SC1-XPDR3" self.cr_serv_input_data["service-z-end"]["tx-direction"][0]["port"]["port-name"] = "XPDR3-NETWORK1" self.cr_serv_input_data["service-z-end"]["rx-direction"][0]["port"]["port-device-name"] = "SPDR-SC1-XPDR3" self.cr_serv_input_data["service-z-end"]["rx-direction"][0]["port"]["port-name"] = "XPDR3-NETWORK1" del self.cr_serv_input_data["service-z-end"]["otu-service-rate"] > response = test_utils.transportpce_api_rpc_request( 'org-openroadm-service', 'service-create', self.cr_serv_input_data) transportpce_tests/2.2.1/test11_otn_end2end.py:1046: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ api_module = 'org-openroadm-service', rpc = 'service-create' payload = {'common-id': 'commonId', 'connection-type': 'infrastructure', 'due-date': '2018-06-15T00:00:01Z', 'operator-contact': 'pw1234', ...} def transportpce_api_rpc_request(api_module: str, rpc: str, payload: dict): # pylint: disable=consider-using-f-string url = "{}/operations/{}:{}".format('{}', api_module, rpc) if payload is None: data = None elif RESTCONF_VERSION == 'draft-bierman02': data = prepend_dict_keys({'input': payload}, api_module + ':') else: data = {'input': payload} response = post_request(url, data) if response.status_code == requests.codes.no_content: return_output = None else: res = response.json() return_key = {'rfc8040': api_module + ':output', 'draft-bierman02': 'output'} if response.status_code == requests.codes.internal_server_error: return_output = res else: > return_output = res[return_key[RESTCONF_VERSION]] E KeyError: 'org-openroadm-service:output' transportpce_tests/common/test_utils.py:694: KeyError ________________ TransportPCEtesting.test_69_get_ODU4_service2 _________________ self = def test_69_get_ODU4_service2(self): > response = test_utils.get_ordm_serv_list_attr_request( "services", "service2-ODU4") transportpce_tests/2.2.1/test11_otn_end2end.py:1053: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attribute = 'services', value = 'service2-ODU4' def get_ordm_serv_list_attr_request(attribute: str, value: str): url = {'rfc8040': '{}/data/org-openroadm-service:service-list/{}={}?content=nonconfig', 'draft-bierman02': '{}/operational/org-openroadm-service:service-list/{}/{}'} format_args = ('{}', attribute, value) response = get_request(url[RESTCONF_VERSION].format(*format_args)) res = response.json() return_key = {'rfc8040': 'org-openroadm-service:' + attribute, 'draft-bierman02': attribute} if return_key[RESTCONF_VERSION] in res.keys(): response_attribute = res[return_key[RESTCONF_VERSION]] else: > response_attribute = res['errors']['error'][0] E KeyError: 'errors' transportpce_tests/common/test_utils.py:636: KeyError ________________ TransportPCEtesting.test_70_create_1GE_service ________________ self = def test_70_create_1GE_service(self): # pylint: disable=line-too-long self.cr_serv_input_data["service-name"] = "service1-1GE" self.cr_serv_input_data["connection-type"] = "service" self.cr_serv_input_data["service-a-end"]["service-rate"] = "1" self.cr_serv_input_data["service-a-end"]["service-format"] = "Ethernet" self.cr_serv_input_data["service-z-end"]["service-rate"] = "1" self.cr_serv_input_data["service-z-end"]["service-format"] = "Ethernet" del self.cr_serv_input_data["service-a-end"]["odu-service-rate"] self.cr_serv_input_data["service-a-end"]["tx-direction"][0]["port"]["port-device-name"] = "SPDR-SA1-XPDR3" self.cr_serv_input_data["service-a-end"]["tx-direction"][0]["port"]["port-name"] = "XPDR3-CLIENT1" self.cr_serv_input_data["service-a-end"]["rx-direction"][0]["port"]["port-device-name"] = "SPDR-SA1-XPDR3" self.cr_serv_input_data["service-a-end"]["rx-direction"][0]["port"]["port-name"] = "XPDR3-CLIENT1" del self.cr_serv_input_data["service-z-end"]["odu-service-rate"] self.cr_serv_input_data["service-z-end"]["tx-direction"][0]["port"]["port-device-name"] = "SPDR-SC1-XPDR3" self.cr_serv_input_data["service-z-end"]["tx-direction"][0]["port"]["port-name"] = "XPDR3-CLIENT1" self.cr_serv_input_data["service-z-end"]["rx-direction"][0]["port"]["port-device-name"] = "SPDR-SC1-XPDR3" self.cr_serv_input_data["service-z-end"]["rx-direction"][0]["port"]["port-name"] = "XPDR3-CLIENT1" > response = test_utils.transportpce_api_rpc_request( 'org-openroadm-service', 'service-create', self.cr_serv_input_data) transportpce_tests/2.2.1/test11_otn_end2end.py:1083: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ api_module = 'org-openroadm-service', rpc = 'service-create' payload = {'common-id': 'commonId', 'connection-type': 'service', 'due-date': '2018-06-15T00:00:01Z', 'operator-contact': 'pw1234', ...} def transportpce_api_rpc_request(api_module: str, rpc: str, payload: dict): # pylint: disable=consider-using-f-string url = "{}/operations/{}:{}".format('{}', api_module, rpc) if payload is None: data = None elif RESTCONF_VERSION == 'draft-bierman02': data = prepend_dict_keys({'input': payload}, api_module + ':') else: data = {'input': payload} response = post_request(url, data) if response.status_code == requests.codes.no_content: return_output = None else: res = response.json() return_key = {'rfc8040': api_module + ':output', 'draft-bierman02': 'output'} if response.status_code == requests.codes.internal_server_error: return_output = res else: > return_output = res[return_key[RESTCONF_VERSION]] E KeyError: 'org-openroadm-service:output' transportpce_tests/common/test_utils.py:694: KeyError _________________ TransportPCEtesting.test_71_get_1GE_service1 _________________ self = def test_71_get_1GE_service1(self): > response = test_utils.get_ordm_serv_list_attr_request( "services", "service1-1GE") transportpce_tests/2.2.1/test11_otn_end2end.py:1090: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attribute = 'services', value = 'service1-1GE' def get_ordm_serv_list_attr_request(attribute: str, value: str): url = {'rfc8040': '{}/data/org-openroadm-service:service-list/{}={}?content=nonconfig', 'draft-bierman02': '{}/operational/org-openroadm-service:service-list/{}/{}'} format_args = ('{}', attribute, value) response = get_request(url[RESTCONF_VERSION].format(*format_args)) res = response.json() return_key = {'rfc8040': 'org-openroadm-service:' + attribute, 'draft-bierman02': attribute} if return_key[RESTCONF_VERSION] in res.keys(): response_attribute = res[return_key[RESTCONF_VERSION]] else: > response_attribute = res['errors']['error'][0] E KeyError: 'errors' transportpce_tests/common/test_utils.py:636: KeyError _________ TransportPCEtesting.test_72_check_interface_1GE_CLIENT_spdra _________ self = def test_72_check_interface_1GE_CLIENT_spdra(self): response = test_utils.check_node_attribute_request( 'SPDR-SA1', 'interface', 'XPDR3-CLIENT1-ETHERNET1G') > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 401 != 200 transportpce_tests/2.2.1/test11_otn_end2end.py:1105: AssertionError ----------------------------- Captured stdout call ----------------------------- Unauthorized /rests/data/network-topology:network-topology/topology=topology-netconf/node=SPDR-SA1/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR3-CLIENT1-ETHERNET1G ________ TransportPCEtesting.test_73_check_interface_ODU0_CLIENT_spdra _________ self = def test_73_check_interface_ODU0_CLIENT_spdra(self): response = test_utils.check_node_attribute_request( 'SPDR-SA1', 'interface', 'XPDR3-CLIENT1-ODU0:service1-1GE') > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 401 != 200 transportpce_tests/2.2.1/test11_otn_end2end.py:1121: AssertionError ----------------------------- Captured stdout call ----------------------------- Unauthorized /rests/data/network-topology:network-topology/topology=topology-netconf/node=SPDR-SA1/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR3-CLIENT1-ODU0:service1-1GE ________ TransportPCEtesting.test_74_check_interface_ODU0_NETWORK_spdra ________ self = def test_74_check_interface_ODU0_NETWORK_spdra(self): response = test_utils.check_node_attribute_request( 'SPDR-SA1', 'interface', 'XPDR3-NETWORK1-ODU0:service1-1GE') > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 401 != 200 transportpce_tests/2.2.1/test11_otn_end2end.py:1144: AssertionError ----------------------------- Captured stdout call ----------------------------- Unauthorized /rests/data/network-topology:network-topology/topology=topology-netconf/node=SPDR-SA1/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR3-NETWORK1-ODU0:service1-1GE ___________ TransportPCEtesting.test_75_check_ODU0_connection_spdra ____________ self = def test_75_check_ODU0_connection_spdra(self): response = test_utils.check_node_attribute_request( 'SPDR-SA1', 'odu-connection', 'XPDR3-CLIENT1-ODU0-x-XPDR3-NETWORK1-ODU0') > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 401 != 200 transportpce_tests/2.2.1/test11_otn_end2end.py:1171: AssertionError ----------------------------- Captured stdout call ----------------------------- Unauthorized /rests/data/network-topology:network-topology/topology=topology-netconf/node=SPDR-SA1/yang-ext:mount/org-openroadm-device:org-openroadm-device/odu-connection=XPDR3-CLIENT1-ODU0-x-XPDR3-NETWORK1-ODU0 _________ TransportPCEtesting.test_76_check_interface_1GE_CLIENT_spdrc _________ self = def test_76_check_interface_1GE_CLIENT_spdrc(self): response = test_utils.check_node_attribute_request( 'SPDR-SC1', 'interface', 'XPDR3-CLIENT1-ETHERNET1G') > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 401 != 200 transportpce_tests/2.2.1/test11_otn_end2end.py:1187: AssertionError ----------------------------- Captured stdout call ----------------------------- Unauthorized /rests/data/network-topology:network-topology/topology=topology-netconf/node=SPDR-SC1/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR3-CLIENT1-ETHERNET1G ________ TransportPCEtesting.test_77_check_interface_ODU0_CLIENT_spdrc _________ self = def test_77_check_interface_ODU0_CLIENT_spdrc(self): response = test_utils.check_node_attribute_request( 'SPDR-SC1', 'interface', 'XPDR3-CLIENT1-ODU0:service1-1GE') > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 401 != 200 transportpce_tests/2.2.1/test11_otn_end2end.py:1203: AssertionError ----------------------------- Captured stdout call ----------------------------- Unauthorized /rests/data/network-topology:network-topology/topology=topology-netconf/node=SPDR-SC1/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR3-CLIENT1-ODU0:service1-1GE ________ TransportPCEtesting.test_78_check_interface_ODU0_NETWORK_spdrc ________ self = def test_78_check_interface_ODU0_NETWORK_spdrc(self): response = test_utils.check_node_attribute_request( 'SPDR-SC1', 'interface', 'XPDR3-NETWORK1-ODU0:service1-1GE') > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 401 != 200 transportpce_tests/2.2.1/test11_otn_end2end.py:1226: AssertionError ----------------------------- Captured stdout call ----------------------------- Unauthorized /rests/data/network-topology:network-topology/topology=topology-netconf/node=SPDR-SC1/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR3-NETWORK1-ODU0:service1-1GE ___________ TransportPCEtesting.test_79_check_ODU0_connection_spdrc ____________ self = def test_79_check_ODU0_connection_spdrc(self): response = test_utils.check_node_attribute_request( 'SPDR-SC1', 'odu-connection', 'XPDR3-CLIENT1-ODU0-x-XPDR3-NETWORK1-ODU0') > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 401 != 200 transportpce_tests/2.2.1/test11_otn_end2end.py:1256: AssertionError ----------------------------- Captured stdout call ----------------------------- Unauthorized /rests/data/network-topology:network-topology/topology=topology-netconf/node=SPDR-SC1/yang-ext:mount/org-openroadm-device:org-openroadm-device/odu-connection=XPDR3-CLIENT1-ODU0-x-XPDR3-NETWORK1-ODU0 _______________ TransportPCEtesting.test_80_check_otn_topo_links _______________ self = def test_80_check_otn_topo_links(self): response = test_utils.get_ietf_network_request('otn-topology', 'config') > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 401 != 200 transportpce_tests/2.2.1/test11_otn_end2end.py:1271: AssertionError ________________ TransportPCEtesting.test_81_check_otn_topo_tp _________________ self = def test_81_check_otn_topo_tp(self): response = test_utils.get_ietf_network_request('otn-topology', 'config') > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 401 != 200 transportpce_tests/2.2.1/test11_otn_end2end.py:1284: AssertionError ________________ TransportPCEtesting.test_82_delete_1GE_service ________________ self = def test_82_delete_1GE_service(self): self.del_serv_input_data["service-delete-req-info"]["service-name"] = "service1-1GE" > response = test_utils.transportpce_api_rpc_request( 'org-openroadm-service', 'service-delete', self.del_serv_input_data) transportpce_tests/2.2.1/test11_otn_end2end.py:1302: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ api_module = 'org-openroadm-service', rpc = 'service-delete' payload = {'sdnc-request-header': {'notification-url': 'http://localhost:8585/NotificationServer/notify', 'request-id': 'e3028ba..., 'rpc-action': 'service-delete'}, 'service-delete-req-info': {'service-name': 'service1-1GE', 'tail-retention': 'no'}} def transportpce_api_rpc_request(api_module: str, rpc: str, payload: dict): # pylint: disable=consider-using-f-string url = "{}/operations/{}:{}".format('{}', api_module, rpc) if payload is None: data = None elif RESTCONF_VERSION == 'draft-bierman02': data = prepend_dict_keys({'input': payload}, api_module + ':') else: data = {'input': payload} response = post_request(url, data) if response.status_code == requests.codes.no_content: return_output = None else: res = response.json() return_key = {'rfc8040': api_module + ':output', 'draft-bierman02': 'output'} if response.status_code == requests.codes.internal_server_error: return_output = res else: > return_output = res[return_key[RESTCONF_VERSION]] E KeyError: 'org-openroadm-service:output' transportpce_tests/common/test_utils.py:694: KeyError ________________ TransportPCEtesting.test_83_check_service_list ________________ self = def test_83_check_service_list(self): > response = test_utils.get_ordm_serv_list_request() transportpce_tests/2.2.1/test11_otn_end2end.py:1309: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def get_ordm_serv_list_request(): url = {'rfc8040': '{}/data/org-openroadm-service:service-list?content=nonconfig', 'draft-bierman02': '{}/operational/org-openroadm-service:service-list/'} response = get_request(url[RESTCONF_VERSION]) res = response.json() return_key = {'rfc8040': 'org-openroadm-service:service-list', 'draft-bierman02': 'service-list'} if return_key[RESTCONF_VERSION] in res.keys(): response_attribute = res[return_key[RESTCONF_VERSION]] else: > response_attribute = res['errors']['error'][0] E KeyError: 'errors' transportpce_tests/common/test_utils.py:620: KeyError __________ TransportPCEtesting.test_84_check_no_ODU0_connection_spdra __________ self = def test_84_check_no_ODU0_connection_spdra(self): > response = test_utils.check_node_request("SPDR-SA1") transportpce_tests/2.2.1/test11_otn_end2end.py:1314: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ node = 'SPDR-SA1' def check_node_request(node: str): # pylint: disable=line-too-long url = {'rfc8040': '{}/data/network-topology:network-topology/topology=topology-netconf/node={}/yang-ext:mount/org-openroadm-device:org-openroadm-device?content=config', # nopep8 'draft-bierman02': '{}/config/network-topology:network-topology/topology/topology-netconf/node/{}/yang-ext:mount/org-openroadm-device:org-openroadm-device'} # nopep8 response = get_request(url[RESTCONF_VERSION].format('{}', node)) res = response.json() return_key = {'rfc8040': 'org-openroadm-device:org-openroadm-device', 'draft-bierman02': 'org-openroadm-device'} if return_key[RESTCONF_VERSION] in res.keys(): response_attribute = res[return_key[RESTCONF_VERSION]] else: > response_attribute = res['errors']['error'][0] E KeyError: 'errors' transportpce_tests/common/test_utils.py:392: KeyError ______ TransportPCEtesting.test_85_check_no_interface_ODU0_NETWORK_spdra _______ self = def test_85_check_no_interface_ODU0_NETWORK_spdra(self): response = test_utils.check_node_attribute_request( 'SPDR-SA1', 'interface', 'XPDR3-NETWORK1-ODU0:service1-1GE') > self.assertEqual(response['status_code'], requests.codes.conflict) E AssertionError: 401 != 409 transportpce_tests/2.2.1/test11_otn_end2end.py:1321: AssertionError ----------------------------- Captured stdout call ----------------------------- Unauthorized /rests/data/network-topology:network-topology/topology=topology-netconf/node=SPDR-SA1/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR3-NETWORK1-ODU0:service1-1GE _______ TransportPCEtesting.test_86_check_no_interface_ODU0_CLIENT_spdra _______ self = def test_86_check_no_interface_ODU0_CLIENT_spdra(self): response = test_utils.check_node_attribute_request( 'SPDR-SA1', 'interface', 'XPDR3-CLIENT1-ODU0:service1-1GE') > self.assertEqual(response['status_code'], requests.codes.conflict) E AssertionError: 401 != 409 transportpce_tests/2.2.1/test11_otn_end2end.py:1326: AssertionError ----------------------------- Captured stdout call ----------------------------- Unauthorized /rests/data/network-topology:network-topology/topology=topology-netconf/node=SPDR-SA1/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR3-CLIENT1-ODU0:service1-1GE _______ TransportPCEtesting.test_87_check_no_interface_10GE_CLIENT_spdra _______ self = def test_87_check_no_interface_10GE_CLIENT_spdra(self): response = test_utils.check_node_attribute_request( 'SPDR-SA1', 'interface', 'XPDR3-CLIENT1-ETHERNET1G') > self.assertEqual(response['status_code'], requests.codes.conflict) E AssertionError: 401 != 409 transportpce_tests/2.2.1/test11_otn_end2end.py:1331: AssertionError ----------------------------- Captured stdout call ----------------------------- Unauthorized /rests/data/network-topology:network-topology/topology=topology-netconf/node=SPDR-SA1/yang-ext:mount/org-openroadm-device:org-openroadm-device/interface=XPDR3-CLIENT1-ETHERNET1G _______________ TransportPCEtesting.test_88_check_otn_topo_links _______________ self = def test_88_check_otn_topo_links(self): response = test_utils.get_ietf_network_request('otn-topology', 'config') > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 401 != 200 transportpce_tests/2.2.1/test11_otn_end2end.py:1335: AssertionError ________________ TransportPCEtesting.test_89_check_otn_topo_tp _________________ self = def test_89_check_otn_topo_tp(self): response = test_utils.get_ietf_network_request('otn-topology', 'config') > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 401 != 200 transportpce_tests/2.2.1/test11_otn_end2end.py:1348: AssertionError _______________ TransportPCEtesting.test_90_delete_ODU4_service ________________ self = def test_90_delete_ODU4_service(self): self.del_serv_input_data["service-delete-req-info"]["service-name"] = "service2-ODU4" > response = test_utils.transportpce_api_rpc_request( 'org-openroadm-service', 'service-delete', self.del_serv_input_data) transportpce_tests/2.2.1/test11_otn_end2end.py:1361: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ api_module = 'org-openroadm-service', rpc = 'service-delete' payload = {'sdnc-request-header': {'notification-url': 'http://localhost:8585/NotificationServer/notify', 'request-id': 'e3028ba... 'rpc-action': 'service-delete'}, 'service-delete-req-info': {'service-name': 'service2-ODU4', 'tail-retention': 'no'}} def transportpce_api_rpc_request(api_module: str, rpc: str, payload: dict): # pylint: disable=consider-using-f-string url = "{}/operations/{}:{}".format('{}', api_module, rpc) if payload is None: data = None elif RESTCONF_VERSION == 'draft-bierman02': data = prepend_dict_keys({'input': payload}, api_module + ':') else: data = {'input': payload} response = post_request(url, data) if response.status_code == requests.codes.no_content: return_output = None else: res = response.json() return_key = {'rfc8040': api_module + ':output', 'draft-bierman02': 'output'} if response.status_code == requests.codes.internal_server_error: return_output = res else: > return_output = res[return_key[RESTCONF_VERSION]] E KeyError: 'org-openroadm-service:output' transportpce_tests/common/test_utils.py:694: KeyError _____________ TransportPCEtesting.test_91_delete_OCH_OTU4_service ______________ self = def test_91_delete_OCH_OTU4_service(self): self.del_serv_input_data["service-delete-req-info"]["service-name"] = "service2-OCH-OTU4" > response = test_utils.transportpce_api_rpc_request( 'org-openroadm-service', 'service-delete', self.del_serv_input_data) transportpce_tests/2.2.1/test11_otn_end2end.py:1369: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ api_module = 'org-openroadm-service', rpc = 'service-delete' payload = {'sdnc-request-header': {'notification-url': 'http://localhost:8585/NotificationServer/notify', 'request-id': 'e3028ba...c-action': 'service-delete'}, 'service-delete-req-info': {'service-name': 'service2-OCH-OTU4', 'tail-retention': 'no'}} def transportpce_api_rpc_request(api_module: str, rpc: str, payload: dict): # pylint: disable=consider-using-f-string url = "{}/operations/{}:{}".format('{}', api_module, rpc) if payload is None: data = None elif RESTCONF_VERSION == 'draft-bierman02': data = prepend_dict_keys({'input': payload}, api_module + ':') else: data = {'input': payload} response = post_request(url, data) if response.status_code == requests.codes.no_content: return_output = None else: res = response.json() return_key = {'rfc8040': api_module + ':output', 'draft-bierman02': 'output'} if response.status_code == requests.codes.internal_server_error: return_output = res else: > return_output = res[return_key[RESTCONF_VERSION]] E KeyError: 'org-openroadm-service:output' transportpce_tests/common/test_utils.py:694: KeyError __________ TransportPCEtesting.test_92_disconnect_xponders_from_roadm __________ self = def test_92_disconnect_xponders_from_roadm(self): response = test_utils.get_ietf_network_request('openroadm-topology', 'config') > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 401 != 200 transportpce_tests/2.2.1/test11_otn_end2end.py:1377: AssertionError _____________ TransportPCEtesting.test_93_check_openroadm_topology _____________ self = def test_93_check_openroadm_topology(self): response = test_utils.get_ietf_network_request('openroadm-topology', 'config') > self.assertEqual(response['status_code'], requests.codes.ok) E AssertionError: 401 != 200 transportpce_tests/2.2.1/test11_otn_end2end.py:1387: AssertionError _________________ TransportPCEtesting.test_94_disconnect_spdrA _________________ self = def test_94_disconnect_spdrA(self): response = test_utils.unmount_device("SPDR-SA1") > self.assertIn(response.status_code, (requests.codes.ok, requests.codes.no_content)) E AssertionError: 401 not found in (200, 204) transportpce_tests/2.2.1/test11_otn_end2end.py:1394: AssertionError ----------------------------- Captured stdout call ----------------------------- Searching for pattern 'onDeviceDisConnected:\ SPDR\-SA1' in karaf.log... Pattern not found after 180 seconds! Node SPDR-SA1 still not deleted from tpce topology... _________________ TransportPCEtesting.test_95_disconnect_spdrC _________________ self = def test_95_disconnect_spdrC(self): response = test_utils.unmount_device("SPDR-SC1") > self.assertIn(response.status_code, (requests.codes.ok, requests.codes.no_content)) E AssertionError: 401 not found in (200, 204) transportpce_tests/2.2.1/test11_otn_end2end.py:1398: AssertionError ----------------------------- Captured stdout call ----------------------------- Searching for pattern 'onDeviceDisConnected:\ SPDR\-SC1' in karaf.log... Pattern not found after 180 seconds! Node SPDR-SC1 still not deleted from tpce topology... ________________ TransportPCEtesting.test_96_disconnect_roadmA _________________ self = def test_96_disconnect_roadmA(self): response = test_utils.unmount_device("ROADM-A1") > self.assertIn(response.status_code, (requests.codes.ok, requests.codes.no_content)) E AssertionError: 401 not found in (200, 204) transportpce_tests/2.2.1/test11_otn_end2end.py:1402: AssertionError ----------------------------- Captured stdout call ----------------------------- Searching for pattern 'onDeviceDisConnected:\ ROADM\-A1' in karaf.log... Pattern not found after 180 seconds! Node ROADM-A1 still not deleted from tpce topology... ________________ TransportPCEtesting.test_97_disconnect_roadmC _________________ self = def test_97_disconnect_roadmC(self): response = test_utils.unmount_device("ROADM-C1") > self.assertIn(response.status_code, (requests.codes.ok, requests.codes.no_content)) E AssertionError: 401 not found in (200, 204) transportpce_tests/2.2.1/test11_otn_end2end.py:1406: AssertionError ----------------------------- Captured stdout call ----------------------------- Searching for pattern 'onDeviceDisConnected:\ ROADM\-C1' in karaf.log... Pattern not found after 180 seconds! Node ROADM-C1 still not deleted from tpce topology... --------------------------- Captured stdout teardown --------------------------- all processes killed =============================== warnings summary =============================== ../.tox/tests221/lib/python3.11/site-packages/paramiko/pkey.py:100 /w/workspace/transportpce-tox-verify-transportpce-master/.tox/tests221/lib/python3.11/site-packages/paramiko/pkey.py:100: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0. "cipher": algorithms.TripleDES, ../.tox/tests221/lib/python3.11/site-packages/paramiko/transport.py:259 /w/workspace/transportpce-tox-verify-transportpce-master/.tox/tests221/lib/python3.11/site-packages/paramiko/transport.py:259: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0. "class": algorithms.TripleDES, -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_01_connect_spdrA FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_02_connect_spdrC FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_03_connect_rdmA FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_04_connect_rdmC FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_05_connect_sprdA_1_N1_to_roadmA_PP1 FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_06_connect_roadmA_PP1_to_spdrA_1_N1 FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_07_connect_sprdC_1_N1_to_roadmC_PP1 FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_08_connect_roadmC_PP1_to_spdrC_1_N1 FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_09_add_omsAttributes_ROADMA_ROADMC FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_10_add_omsAttributes_ROADMC_ROADMA FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_11_check_otn_topology FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_12_create_OCH_OTU4_service FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_13_get_OCH_OTU4_service1 FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_14_check_interface_och_spdra FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_15_check_interface_OTU4_spdra FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_16_check_interface_och_spdrc FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_17_check_interface_OTU4_spdrc FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_18_check_no_interface_ODU4_spdra FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_19_check_openroadm_topo_spdra FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_20_check_openroadm_topo_ROADMA_SRG FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_21_check_openroadm_topo_ROADMA_DEG FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_22_check_otn_topo_otu4_links FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_23_create_ODU4_service FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_24_get_ODU4_service1 FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_25_check_interface_ODU4_spdra FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_26_check_interface_ODU4_spdrc FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_27_check_otn_topo_links FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_28_check_otn_topo_tp FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_29_create_10GE_service FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_30_get_10GE_service1 FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_31_check_interface_10GE_CLIENT_spdra FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_32_check_interface_ODU2E_CLIENT_spdra FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_33_check_interface_ODU2E_NETWORK_spdra FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_34_check_ODU2E_connection_spdra FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_35_check_interface_10GE_CLIENT_spdrc FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_36_check_interface_ODU2E_CLIENT_spdrc FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_37_check_interface_ODU2E_NETWORK_spdrc FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_38_check_ODU2E_connection_spdrc FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_39_check_otn_topo_links FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_40_check_otn_topo_tp FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_41_delete_10GE_service FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_42_check_service_list FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_43_check_no_ODU2e_connection_spdra FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_44_check_no_interface_ODU2E_NETWORK_spdra FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_45_check_no_interface_ODU2E_CLIENT_spdra FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_46_check_no_interface_10GE_CLIENT_spdra FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_47_check_otn_topo_links FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_48_check_otn_topo_tp FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_49_delete_ODU4_service FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_50_check_service_list FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_51_check_no_interface_ODU4_spdra FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_52_check_otn_topo_links FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_53_check_otn_topo_tp FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_54_delete_OCH_OTU4_service FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_55_get_no_service FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_56_check_no_interface_OTU4_spdra FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_57_check_no_interface_OCH_spdra FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_58_getLinks_OtnTopology FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_59_check_openroadm_topo_spdra FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_60_check_openroadm_topo_ROADMA_SRG FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_61_check_openroadm_topo_ROADMA_DEG FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_62_connect_sprdA_3_N1_to_roadmA_PP2 FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_63_connect_roadmA_PP2_to_spdrA_3_N1 FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_64_connect_sprdC_3_N1_to_roadmC_PP2 FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_65_connect_roadmC_PP2_to_spdrC_3_N1 FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_66_create_OCH_OTU4_service_2 FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_67_get_OCH_OTU4_service2 FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_68_create_ODU4_service_2 FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_69_get_ODU4_service2 FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_70_create_1GE_service FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_71_get_1GE_service1 FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_72_check_interface_1GE_CLIENT_spdra FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_73_check_interface_ODU0_CLIENT_spdra FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_74_check_interface_ODU0_NETWORK_spdra FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_75_check_ODU0_connection_spdra FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_76_check_interface_1GE_CLIENT_spdrc FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_77_check_interface_ODU0_CLIENT_spdrc FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_78_check_interface_ODU0_NETWORK_spdrc FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_79_check_ODU0_connection_spdrc FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_80_check_otn_topo_links FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_81_check_otn_topo_tp FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_82_delete_1GE_service FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_83_check_service_list FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_84_check_no_ODU0_connection_spdra FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_85_check_no_interface_ODU0_NETWORK_spdra FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_86_check_no_interface_ODU0_CLIENT_spdra FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_87_check_no_interface_10GE_CLIENT_spdra FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_88_check_otn_topo_links FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_89_check_otn_topo_tp FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_90_delete_ODU4_service FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_91_delete_OCH_OTU4_service FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_92_disconnect_xponders_from_roadm FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_93_check_openroadm_topology FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_94_disconnect_spdrA FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_95_disconnect_spdrC FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_96_disconnect_roadmA FAILED transportpce_tests/2.2.1/test11_otn_end2end.py::TransportPCEtesting::test_97_disconnect_roadmC 97 failed, 2 warnings in 1670.35s (0:27:50)